<template>
  <div>
    <router-view></router-view>
  </div>
</template>

<script>
import { mineApi } from '@/api'
export default {
  components: {
  },
  async created() {
    const inviteCode = this.$route.query.inviteCode
    this.inviteCode = inviteCode
    if (!inviteCode) {
      return
    }
    const res = await mineApi.getInfoByInviteCode(inviteCode)
    console.log('res', res)

    this.inviteInfo = res.data
    this.inviteInfo.HeadImg = this.inviteInfo.head_img
    this.inviteInfo.NickName = decodeURIComponent(this.inviteInfo.nickname)
    // this.inviteInfo.PersonalizedSignature = decodeURIComponent(this.inviteInfo.nickname)
  },
  data() {
    return {
      topResource: {
        centerCont: ''
      },
      inviteCode: '',
      inviteInfo: {}
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
@import "src/assets/css/mixin.scss";
@import 'src/assets/css/variables.scss';
</style>
